import bugtracking.Bug

/**
 * Created by IntelliJ IDEA.
 * User: alexandrua
 * Date: 6/8/11
 * Time: 5:37 PM
 * To change this template use File | Settings | File Templates.
 */
class BugReadingJob {

    static triggers = {
//        cron name: 'mySimpleTrigger1', cronExpression: "30 25 21 ? * *"  //sec  mm hh
        simple name: 'mySimpleTrigger1', startDelay: 100, repeatInterval: 1000000
    }
    def group = "MyGroup"

    def execute() {
        IssuesGetter issuesGetter = new IssueGetterImpl();
        issuesGetter.saveIssues(new Date());
    }

}
